From 3a7c458bd78877f1b51f32eeb4235b28bb5fa73b Mon Sep 17 00:00:00 2001 From: Lupin Date: Tue, 7 Mar 2006 04:00:43 +0000 Subject: [PATCH] undeclared globals --- includes/SpecialUpload.php | 2 +- includes/SpecialUserrights.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 3bfd26eb48..5e8cdea8d1 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -920,7 +920,7 @@ class UploadForm { * If textual feedback is missing but a virus was found, this function returns true. */ function detectVirus($file) { - global $wgAntivirus, $wgAntivirusSetup, $wgAntivirusRequired; + global $wgAntivirus, $wgAntivirusSetup, $wgAntivirusRequired, $wgOut; $fname= "SpecialUpload::detectVirus"; diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index d71b8c49ea..60a97f8873 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -74,6 +74,7 @@ class UserrightsForm extends HTMLForm { * */ function saveUserGroups( $username, $removegroup, $addgroup) { + global $wgOut; $u = User::newFromName($username); if(is_null($u)) { -- 2.20.1